<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Demo 1',
	'language'=>'zh_cn',

	'preload'=>array('log'),

	'import'=>array(
		'application.models.*',
		'application.models.petcategories.*',
		'application.models.petskills.*',
		'application.models.locations.*',
		'application.components.*',
	),

	'components'=>array(
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CWebLogRoute',
					'levels'=>'info, error, warning',
				),
				array(
					'class'=>'CProfileLogRoute',
				),
			),
		),
		'user'=>array(
			'allowAutoLogin'=>true,
		),
		'cache'=>array(
			'class'=>'system.caching.CApcCache',
		),
		'db'=>array(
			'connectionString'=>'mysql:host=localhost;dbname=webpet',
			'username'=>'webpet',
			'password'=>'webpet',
// 			'schemaCachingDuration'=>3600,
		),
		'urlManager'=>array(
			'urlFormat'=>'path',
//			'urlSuffix'=>'.htm',
		),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		'image'=>array(
			'path'=>'/srv/www/img1.webpet.sunbird.net',
			'url'=>'http://img1.webpet.sunbird.net',
			'petNormal'=>'/pet/%d_1.gif',
			'petAttack'=>'/pet/%d_2.gif',
			'petDefence'=>'/pet/%d_3.gif',
		),
	),
);
